package city.spring.modules.medicalstation.doctorsOrderItem.service;

import city.spring.modules.medicalstation.doctorsOrderItem.entity.DoctorsOrderItemEntity;
import city.spring.modules.medicalstation.doctorsOrderItem.vo.DoctorsOrderItemVO;
import com.baomidou.mybatisplus.core.conditions.Wrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.core.toolkit.Constants;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * Service：医嘱项目
 *
 * @author 谢金婷
 * @date 2020-10-29 10:57:28
 */
public interface DoctorsOrderItemService extends IService<DoctorsOrderItemEntity> {
    String CACHE_NAME = "doctors_order_item";

    /**
     * 业务处理：保存一个 <strong>医嘱项目</strong>
     *
     * @param entity 医嘱项目
     */
    void saveDoctorsOrderItem(DoctorsOrderItemEntity entity);

    /**
     * 业务处理：修改一个 <strong>医嘱项目</strong>
     *
     * @param entity 医嘱项目
     */
    void updateDoctorsOrderItem(DoctorsOrderItemEntity entity);

    /**
     * 业务处理：删除一个 <strong>医嘱项目</strong>
     *
     * @param primaryKey 主键ID
     */
    void deleteDoctorsOrderItem(String primaryKey);

    /**
     * 业务处理：删除多个 <strong>医嘱项目</strong>
     *
     * @param primaryKeys 主键ID列表
     */
    void deleteDoctorsOrderItem(List<String> primaryKeys);

    IPage<DoctorsOrderItemVO> listPage(Page<? extends DoctorsOrderItemEntity> page, @Param(Constants.WRAPPER) Wrapper<? extends DoctorsOrderItemEntity> wrapper);

    IPage<DoctorsOrderItemVO> druglistPage(Page<? extends DoctorsOrderItemEntity> page, @Param(Constants.WRAPPER) Wrapper<? extends DoctorsOrderItemEntity> wrapper);

    List<DoctorsOrderItemEntity> getByType(String type);
}